/* 
使用格式:
	1.引入公用样式表
	2.引入当前样式表
	3.引入公用js模块
	4.具体功能

*/
//引入底部导航
const { showTop } = require("../../assets/lib/tooljs/nav.js")
showTop('sport')

// 1.引入公用样式表
require("../../assets/css/index.less");

// 2.引入当前样式表
require("./sport.less");

// 3.引入公用js模块
let dom = require("../../utils/dom.js");
require("../../assets/fonts/iconfont.css");



dom.ready(function () {
	dom.contFooter("sport")

	document.querySelector(".ready").addEventListener("click", function () {
		location.href = "./count_down.html";
		console.log(1);
	})

	window._AMapSecurityConfig = {
		securityJsCode: 'c158d82baa8d4a1641e4459399217656',
	}
	var map = new AMap.Map('container', {
		zoom: 16, //级别
		center: [104.05843, 30.53565], //中心点坐标
		viewMode: '3D' //使用3D视图
	});
	//点标记
	var marker = new AMap.Marker({
		position: [104.05843, 30.53565] //位置
	})
	map.add(marker); //添加到地图


	const a = localStorage.getItem("run").slice(1, -1);
	let b = document.querySelector(".runData .value").innerText;
	document.querySelector(".runData .value").innerText = a + b;

});
